//package com.vainycos.lotterysearch;
//
//import com.vainycos.lotterysearch.config.ScheduledTaskCenter;
//import com.vainycos.lotterysearch.model.ro.WorldCupDetailRo;
//import com.vainycos.lotterysearch.schedule.WorldcupSyncData;
//import com.vainycos.lotterysearch.service.WorldCupDetailService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.ApplicationArguments;
//import org.springframework.boot.ApplicationRunner;
//import org.springframework.stereotype.Component;
//
///**
// * @author: Vainycos 暂时不支持实况比赛
// * @description
// * @date: 2021/12/8 17:04
// */
//@Slf4j
//@Component
//public class ApplicationRunnerImpl implements ApplicationRunner {
//
//    @Autowired
//    private WorldCupDetailService worldCupDetailService;
//
//    @Autowired
//    private ScheduledTaskCenter scheduledTaskCenter;
//
//    @Autowired
//    private WorldcupSyncData worldcupSyncData;
//
//    @Override
//    public void run(ApplicationArguments args) {
//        log.info(">>>>>>>>>开始初始化定时任务!>>>>>>>>>");
//        // 更新赛程
//        log.info("更新赛程...");
//        worldCupDetailService.initDetail();
//        log.info("更新赛程成功！");
//        // 初始化未开赛的赛程
//        scheduledTaskCenter.initTaskCenter(worldCupDetailService.getList(new WorldCupDetailRo("4")));
//        // 初始化实况比赛扫描
//        worldcupSyncData.realtimeMatch();
//        log.info(">>>>>>>>>初始化定时任务成功!>>>>>>>>>");
//    }
//}
